<%@ page language="java" contentType="text/html; charset=UTF-8"
		 pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<title>日志管理</title>
    <jsp:include page="common/common_head.jsp"></jsp:include>

    <jsp:include page="common/common_editor.jsp"/>

</head>
<body  data-spy="scroll" data-target=".navbar">



<jsp:include page="common/common_banner_app.jsp"></jsp:include>
<div style="height:30px"></div>
<div class="container">


    <ul class="breadcrumb">
        <li>目录:
            <span class="divider"><a href="/appManager/appManagerLogList.html?appName=${appName}&host=${host}&path=/">/</a></span>
        </li>
        <li>

            <c:forEach items="${pathDetail}" var="c">
                <li>
                    <span class="divider"><a href="/appManager/appManagerLogList.html?appName=${appName}&host=${host}&path=${c[1]}">${c[0]}</a></span>
                    <span class="divider">/</span>
                </li>

            </c:forEach>
        <li class="pull-right" style="margin-top: -6px;">
            <a class="btn" href="?appName=${appName}&path=${path}&offset=0&host=${host}">开头</a>
            <a class="btn" href="?appName=${appName}&path=${path}&offset=${preOffset}&host=${host}">上一页</a>
            <a  class="btn"  href="?appName=${appName}&path=${path}&offset=${offset}&host=${host}">下一页</a>
            <a class="btn" href="?appName=${appName}&path=${path}&offset=-1&host=${host}">结尾</a>

        </li>




    </ul>



    <div style="width: 100%;height: 100%;">

        <textarea style="width: 100%;height: 600px;" id="area">${file}</textarea>


    </div>



	<jsp:include page="common/common_js.jsp"></jsp:include>




	<script type="application/javascript">

        $(document).ready(function(){


            window.editor = CodeMirror.fromTextArea(document.getElementById("area"), {
                mode: "shell",
                indentWithTabs: true,
                smartIndent: true,
                lineNumbers: true,
                lineWrapping: true,
                matchBrackets : true,
                autofocus: true,
                height: "1000",
                lines: 300,
                theme: "eclipse",
                styleActiveLine: true,
                extraKeys: {
                    //"Ctrl-.": "autocomplete",
                    //"Ctrl-Enter": function(){search()},
                    "F10": function(cm) {
                        if(cm.getOption("fullScreen")){
                            $(".navbar").css("display", "");
                            cm.setOption("theme", "eclipse");

                        }else{
                            cm.setOption("theme", "midnight");
                            $(".navbar").css("display", "none")

                        }
                        cm.setOption("fullScreen", !cm.getOption("fullScreen"));

                    }

                },
                hintOptions: {tables: {
                    users: {name: null, score: null, birthDate: null},
                    countries: {name: null, population: null, size: null}
                }}
            });

            window.editor.setSize(-1,window.screen.availHeight - 220)

        })







	</script>
</body>
</html>